clear all

*set working directory
use "study4_data.dta"

xtset ID


** comparative candidate evaluations **

*dv: ideological difference 
xtreg ideodiff01 ext moral i.issueid, re cluster(ID)
test ext=moral

*dv: favorability difference
xtreg favdiff01 ext moral i.issueid, re cluster(ID)
test ext=moral

*dv: character
xtreg traitmoraldiff01 ext moral i.issueid, re cluster(ID)
test ext=moral

*dv: anger
xtreg angerdiff01 ext moral i.issueid, re cluster(ID)
test ext=moral

*dv: enthusiasm
xtreg enthusdiff01 ext moral i.issueid, re cluster(ID)
test ext=moral


** in-party evaluations **

xtreg favin01 ext moral i.issueid, re cluster(ID)
test ext=moral

xtreg traitmoralin01 ext moral i.issueid, re cluster(ID)
test ext=moral

xtreg angryin01 ext moral i.issueid, re cluster(ID)
test ext=moral

xtreg enthusin01 ext moral i.issueid, re cluster(ID)
test ext=moral


** out-party evaluations **

xtreg favout01 ext moral i.issueid, re cluster(ID)
test ext=moral

xtreg traitmoralout01 ext moral i.issueid, re cluster(ID)
test ext=moral

xtreg angryout01 ext moral i.issueid, re cluster(ID)
test ext=moral

xtreg enthusout01 ext moral i.issueid, re cluster(ID)
test ext=moral
